<?php if (!defined('THINK_PATH')) exit();?><html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=">
		<title><?php echo (C("APPENAME")); ?>-<?php echo (C("APPNAME")); ?></title>
<link rel=icon type="image/x-icon" href="/degs/Public/images/favivon.ico" >
		<link rel="stylesheet" type="text/css" href="/degs/Public/jquery-easyui-1.4.5/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/degs/Public/jquery-easyui-1.4.5/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/degs/Public/jquery-easyui-1.4.5/demo/demo.css">
<link rel="stylesheet" type="text/css" href="/degs/Public/jquery-easyui-1.4.5/themes/icon_my.css">
<link href="/degs/Public/jquery-easyui-1.4.5/themes/icons/icon-all.css" type="text/css" rel="stylesheet">
<link href="/degs/Public/css/mystyle.css" rel="stylesheet" type="text/css" />
			
</head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--登录窗口-->
<style>
	.regedituser{
		color: #0E2D5F;
	}
</style>

<body style="background-color:#C9D4F9">
	<div id="login" class="easyui-dialog" style="width:400px;height:240px;padding:2px 10px;" title="&nbsp;&nbsp;登录" data-options="iconCls:'icon-standard-house-go',buttons:'#dlg-buttons',closed:false,resizable:false,modal:false,closable:true">

	<table>
		<tr>
			<td>
				<img title="<?php echo (C("APPNAME")); ?>" border="0" width="150" alt="<?php echo (C("APPURL")); ?>" src="/degs/Public/images/logo.png">

			</td>
			<td style="background-image: url(/degs/Public/images/big_seperator.png);background-repeat: no-repeat;width: 8px;height: 148px;background-position: center center;"></td>
			<td>
				<form id="loginForm" method="post">
					<table>
						<tr height="35px">
							<td style="color:#B083E4">用户名:</td>
							<td>
								<input type="text" name="username" class="easyui-textbox" data-options="required:true" value="" style="width:150px;" />
							</td>
						</tr>

						<tr height="35px">
							<td style="color:#B083E4">密码:</td>
							<td>
								<input type="password" class="easyui-textbox" data-options="required:true" value="" name="password" style="width:150px;" />
							</td>
						</tr>

					</table>
				</form>

			</td>
		</tr>
	</table>

</div>
<div id="dlg-buttons">
	<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="login()">登录</a>
	<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="javascript:$('#login').dialog('close')">取消</a>
	<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="login1()">浏览者</a>
</div>


<script type="text/javascript" src="/degs/Public/jquery-easyui-1.4.5/jquery.min.js"></script>

<script type="text/javascript" src="/degs/Public/jquery-easyui-1.4.5/jquery.easyui.min.js"></script>
<script src="/degs/Public/jquery-easyui-1.4.5/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>

<script>

		
function login(){
$('#loginForm').form('submit',{
		url:'/degs/index.php/Admin/Login/checkLogin',
		success:function(data){
			var data = eval('(' + data + ')');
		if(data.status==1){

			  window.location.href='/degs/index.php/Home/index/index';//正确登录后页面跳转至 
		}else{
			$.messager.alert('登录失败', data.mes,'info');
		}
		}
	});
	
	}
function login1(){
		$.post('/degs/index.php/Admin/Login/checkLogin', {
							username : 'tzcsyb',password:'123456'
						}, function(data) {
							if(data.status==1){

			  window.location.href='/degs/index.php/Home/index/index';//正确登录后页面跳转至 
		}else{
			$.messager.alert('登录失败', data.mes,'info');
		}
						}, 'json');
}

	// 回车登录
	$(function(){
document.onkeydown = function(e){ 
    var ev = document.all ? window.event : e;
    if(ev.keyCode==13) {

           login();

     }
}
}); 
</script>
</body>
</html>